﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SuperKTV.Admin
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            this.tslbl_status.Text = string.Format("当前系统时间是{0}", DateTime.Now.ToString("yyyy年M月dd日 hh:mm:ss"));
            /*
            // 创建并显示歌曲管理窗体
            SongManagerForm songForm = new SongManagerForm();
            songForm.MdiParent = this;
            songForm.Show();
            // 创建并显示歌手管理窗体
            SingerManagerForm singerForm = new SingerManagerForm();
            singerForm.MdiParent = this;
            singerForm.Show();
            // 创建并显示歌曲类型管理窗体
            SongTypeManagerForm songTypeForm = new SongTypeManagerForm();
            songTypeForm.MdiParent = this;
            songTypeForm.Show();
            */
        }

        private void 歌曲列表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SongManagerForm songForm = null;
            songForm = new SongManagerForm();
            songForm.MdiParent = this;
            songForm.Show();
        }

        private void 歌手列表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SingerManagerForm singerForm = new SingerManagerForm();
            singerForm.MdiParent = this;
            singerForm.Show();
        }
    }
}
